import { AuthRoute } from "@/types/auth/route";

export const constantRoutes: Array<AuthRoute.Route> = [
    {
        name: 'root',
        path: '/',
        redirect: '/home',
        meta: {
            title: '首页',
        },
    },
    {
        name: 'login',
        path: '/login',
        // component: () => import('@views/system/login/login.vue'),
        component: 'self',
        meta: {
            title: '登录',
        },
    },
    {
        name: 'not-found',
        path: '/not-found',
        // component: () => import('@views/system/login/login.vue'),
        component: 'self',
        meta: {
            title: '无页面',
        },
    },
    {
        name: 'not-found-page',
        path: '/:pathMatch(.*)*',
        meta: {
            title: '未找到',
        },
    },
]

/** 路由名称 */
export const routeName = (key: AuthRoute.RouteKey) => key;